
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>注册页</title>
</head>
<body>
<%
    if (session.getAttribute("msg") != null) {
        out.print("<script> alert('" + session.getAttribute("msg") + "'); </script>");
        session.removeAttribute("msg");
    }
%>
     <form action="<%=request.getContextPath()%>/register" method="post">

    <div class="zh" style="width: 350px;height: 450px; border: 1px solid beige;margin: 90px auto;background-color: firebrick;">

        <h1>注册窗口</h1>
        账号：
        <input type="text" name="account">
        <br>
        密码：
        <input type="password" name="password">
        <br>
        <button type="submit">注册</button>
        <a href="<%= request.getContextPath()%>/main.jsp">已有账号请登录</a>


</div>
     </form>

</body>

<style>
    body{
        background: url(idemge/login.jpg) no-repeat;

    }
    .zh{
        margin: 30px;
        text-align: center;
        padding-top: 60px;
        font-size: 16px;
        line-height: 50px;
        border-radius:30px;
    }

</style>

</html>
